home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5357 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: solon.com!not-for-mail
  2. From: seebs@solutions.solon.com (Peter Seebach)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: What the heck is ...?
  5. Date: 12 Feb 1996 06:51:56 -0600
  6. Organization: Usenet Fact Police (Undercover)
  7. Message-ID: <4fnd5c$9a2@solutions.solon.com>
  8. References: <sconi-1102961642580001@ip-24.newportnet.net> <4fmlro$nfg_001@pr.mcs.net>
  9. NNTP-Posting-Host: solutions.solon.com
  10.  
  11. In article <4fmlro$nfg_001@pr.mcs.net>,
  12. Michael D. Perry <mdp@mika-sys.com> wrote:
  13. >In article <sconi-1102961642580001@ip-24.newportnet.net>,
  14. >   sconi@superstore.com (Chris Tiee "Chochoni Boboni") wrote:
  15. >>Here's something all the books love to avoid: The use of ... in 
  16. >function
  17. >>declarations. For example, one book says that the prototype of 
  18. >printf() is
  19.  
  20. >>int printf(const char *fmt_string, ...);
  21.  
  22. ><< SNIP >>
  23.  
  24. >What the ellipses mean is that it is a repeatable item.  In the 
  25. >case that you cite it takes the place of saying that all of the 
  26. >following statements are valid:
  27.  
  28. >int a = 2;
  29. >int b = 3;
  30. >printf("Test %d, is followed by test %d", a b);
  31. >Prints: Test 2 is followed by test 3
  32.  
  33. ???
  34.  
  35. >So logic follow that:
  36.  
  37. >printf("%d, %d, %d, %d, %d, %d, %d", 1 2 3 4 5 6 7);
  38.  
  39. >is the same as:
  40.  
  41. >printf("%d, ..., %d", 1 ... 7);
  42.  
  43. >and is simply much easier to type and accounts for any number of 
  44. >variables.
  45.  
  46. !@#*@#)?@#
  47.  
  48. Why aren't these people doing my homework contest in comp.lang.c.moderated?
  49. This is possibly the most convincing answer I've ever seen *which has
  50. absolutely no basis in or relation to reality*.  Made up entirely out of
  51. whole cloth, AFAICT.
  52.  
  53. But it sure sounds nice.
  54.  
  55. -s
  56. -- 
  57. Peter Seebach - seebs@solon.com - Copyright 1995 Peter Seebach.
  58. C/Unix wizard -- C/Unix questions? Send mail for help.  No, really!
  59. FUCK the communications decency act.  Goddamned government.  [literally.]
  60. The *other* C FAQ - ftp taniemarie.solon.com /pub/c/afq - Not A Flying Toy
  61.